﻿namespace com.stifel.ProjectMgmt
{
    using System;
    using System.Web.UI;

    public partial class ProjectMgmtUserControl : UserControl
    {
        #region Methods

        protected void Page_Load( object sender, EventArgs e )
        {
            if ( !Page.IsPostBack )
            {
                loadProjects( );
                setUrlReferrer( );
            }
        }

        protected void uiCancelButton_Click( object sender, System.Web.UI.ImageClickEventArgs e )
        {
            Page.Response.Redirect( UrlReferrer );
        }

        protected void uiOkButton_Click( object sender, System.Web.UI.ImageClickEventArgs e )
        {
            updateProjectRanking( );
            Page.Response.Redirect( UrlReferrer );
        }

        #endregion Methods
    }
}